<script lang="ts" setup>
import { Form, Select } from 'ant-design-vue'
defineProps({
  disabled: {
    type: Boolean,
    default: false
  },
  differentFields:{
        type: Array,
        default: []
    }
})

const level = defineModel<string>('level', { required: true })
</script>

<template>
  <Form.Item label="接口等级" :class="{'custom-label': differentFields.includes('level')}">
    <Select v-model:value="level" default-value="0" :disabled="disabled">
      <Select.Option value="0">P0</Select.Option>
      <Select.Option value="1">P1</Select.Option>
      <Select.Option value="2">P2</Select.Option>
      <Select.Option value="3">P3</Select.Option>
    </Select>
  </Form.Item>
</template>
